﻿@model Fmis21_10.Models.UserModel

@{
    ViewBag.Title = "Registration";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Registration</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true,"Create user failed, check your files") ;
    <div>
        <fieldset>
            <legend>Registration form</legend>
            <div>@Html.LabelFor(u=>u.Username)</div>

            <div>@Html.TextBoxFor(u=>u.Username)
                @Html.ValidationMessageFor(u=>u.Username)
            </div>
            <div>@Html.LabelFor(u=>u.Password)</div>

            <div>@Html.PasswordFor(u=>u.Password)
                @Html.ValidationMessageFor(u=>u.Password)
            </div>
            <div>@Html.LabelFor(u=>u.Roles)</div>
            <div>@Html.TextBoxFor(u=>u.Roles)</div>
            <input type="submit" value="Create User"/>
        </fieldset>
    </div>
}